package com.express.ExpInsuranceLog.web;


import com.aqgj.util.JsonWrapper;
import com.express.ExpInsuranceLog.service.ExpInsuranceLogManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

@Controller
@RequestMapping("ztc/insuranceLog")
public class ExpInsuranceLogAction {

    @Autowired
    ExpInsuranceLogManager expInsuranceLogManager;


    /**
     * 获取快递运费险交易记录
     *
     * @param pageNo   页码
     * @param pageSize 每页数量
     * @return
     */
    @RequestMapping("getInsuranceLogList")
    @ResponseBody
    public HashMap<String,Object> getInsuranceLogList(@RequestParam(defaultValue = "1") Integer pageNo, @RequestParam(defaultValue = "10") Integer pageSize){
        return expInsuranceLogManager.getInsuranceLogList(pageNo,pageSize);
    }

}